package com.commonProject.common.exception;

import java.util.ArrayList;
import java.util.List;

public class ValidateException extends Exception{	
	private static final long serialVersionUID = 1L;
	
	private List<String> errors=new ArrayList<String>();
	

	public ValidateException(){
		super();
	}
	
	public ValidateException(List<String> error){
		super();
		errors.clear();
		errors.addAll(error);
	}
	
	public List<String> getError(){
		return errors;
	}
}
